package com.sanjiahantang.youjiarole.module.category.beans;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiarole.base.BaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * 分类
 */
public class CategoryBean extends BaseBean {

    private String data;

    public List<Data> getData() {
        return new Gson().fromJson(data,new TypeToken<List<Data>>(){}.getType());
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class Data implements Serializable{
        private int id;
        private int mgcId;
        private String text;
        private String name;
        private int number;
        private int orderNum;
        private int parentId;
        private int isExperienceShow;
        private int isShopShow;
        private boolean selected;
        private List<Data> children;
        private String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getMgcId() {
            return mgcId;
        }

        public void setMgcId(int mgcId) {
            this.mgcId = mgcId;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public int getOrderNum() {
            return orderNum;
        }

        public void setOrderNum(int orderNum) {
            this.orderNum = orderNum;
        }

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }

        public int getIsExperienceShow() {
            return isExperienceShow;
        }

        public void setIsExperienceShow(int isExperienceShow) {
            this.isExperienceShow = isExperienceShow;
        }

        public int getIsShopShow() {
            return isShopShow;
        }

        public void setIsShopShow(int isShopShow) {
            this.isShopShow = isShopShow;
        }

        public boolean isSelected() {
            return selected;
        }

        public void setSelected(boolean selected) {
            this.selected = selected;
        }

        public List<Data> getChildren() {
            return children;
        }

        public void setChildren(List<Data> children) {
            this.children = children;
        }
    }



    public static class Info {

        private String classify_id;
        private String classify_name;
        private List<ChildClass> child;
        private boolean isChecked;


        public String getClassify_id() {
            return classify_id;
        }

        public void setClassify_id(String classify_id) {
            this.classify_id = classify_id;
        }

        public String getClassify_name() {
            return classify_name;
        }

        public void setClassify_name(String classify_name) {
            this.classify_name = classify_name;
        }

        public List<ChildClass> getChild() {
            return child;
        }

        public void setChild(List<ChildClass> child) {
            this.child = child;
        }

        public boolean isChecked() {
            return isChecked;
        }

        public void setChecked(boolean checked) {
            isChecked = checked;
        }



    }

    public static class ChildClass {
        public String classify_id;
        public String classify_name;

        public String getClassify_id() {
            return classify_id;
        }

        public void setClassify_id(String classify_id) {
            this.classify_id = classify_id;
        }

        public String getClassify_name() {
            return classify_name;
        }

        public void setClassify_name(String classify_name) {
            this.classify_name = classify_name;
        }
    }
}
